package com.aaa.project.service;

import com.aaa.entity.OOrder;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.security.Principal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单信息 服务类
 * </p>
 *
 * @author zhangxuhui
 * @since 2023-02-03
 */
public interface IOOrderService extends IService<OOrder> {


    PageInfo findAll(Principal principal, Integer curr, Integer pageSize,Integer zhuangtai);

    boolean updState(String code,Integer state);


    Object buyGoods(String id,Principal principal);

    int cancle(String id);

    int delete(String code);

    public Integer updateOOrder(String code);

    List<OOrder> all(String code);

//    商家
    Page getAllOrderBybid(Page page, String bid, OOrder order);

    List<Map<String,Object>> income(String bid);

}
